
INCLUDE_DIRECTORIES( ${CMAKE_HOME_DIRECTORY}/src/libs/reader )

SET( BOOST_LIBS system thread serialization )
FIND_PACKAGE( Boost COMPONENTS ${BOOST_LIBS} REQUIRED )


SET( NETWORK_SRCS 
	StreamSocket.cpp
)

SET( SAMPLE_SRCS 
	Sample.cpp
)

ADD_EXECUTABLE( tstnetwork ${SAMPLE_SRCS})
TARGET_LINK_LIBRARIES( tstnetwork ${Boost_LIBRARIES} network )
INSTALL_TARGETS( /bin tstnetwork )

find_package(Threads REQUIRED)
# target_link_libraries(simple_screen ${CMAKE_THREAD_LIBS_INIT})
ADD_LIBRARY( network SHARED ${NETWORK_SRCS} )
TARGET_LINK_LIBRARIES( network ${Boost_LIBRARIES} )
INSTALL_TARGETS( /lib network )

SET_TARGET_PROPERTIES( network PROPERTIES
        VERSION 0
        SOVERSION 0
)
